<?php

namespace App\Http\Controllers\Weidian;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class StoreController extends Controller
{
     public  function  store(Request $request){
         //dd($request->all());
         //laravel 参数的传递就是关联数组的形式

         $data['name']='peter';
         //return view('Weidian.store',['name'=>'peter']);

        //return view('Weidian.store',$data);

         //return view('Weidian.store')->with($data);
          //$name=['1','2','3'];

         $name='peter';
         //var_dump(compact('name'));
         //return view('Weidian.store')->with($data);
         return view('Weidian.store',compact('name'));

     }

    public  function  choose(Request $request){
        return view('Weidian.choose');
    }
}
